package com.ruoyi.common.enums;

/**
 * 榴莲出行地点类型枚举
 *
 * @author ruoyi
 */
public enum OrderType {

    /**
     * 等待车辆接单
     */
    WAITING_BEFORE(0, "WAITING_BEFORE"),

    /**
     * 司机接单之后
     */
    READY(1, "READY"),

    /**
     * 司机到达乘客位置
     */
    WAITING_AFTER(2, "WAITING_AFTER"),

    /**
     * 乘客上车
     */
    IN_PROGRESS(3, "IN_PROGRESS"),

    /**
     * 行程结束
     */
    END(4, "END"),

    /**
     * 待支付状态
     */
    TO_PAY(5, "TO_PAY"),

    /**
     * 支付完成
     */
    PAYMENT_COMPLETED(6, "PAYMENT_COMPLETED"),

    /**
     * 取消订单
     */
    DELETE_ORDER(9, "DELETE_ORDER");

    private int code;
    private String description;

    OrderType(int code, String description) {
        this.code = code;
        this.description = description;
    }

    public int getCode() {
        return code;
    }

    public String getDescription() {
        return description;
    }


}
